package com.platform.dahuatech.icc.controller;

import com.dahuatech.icc.exception.ClientException;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.platform.dahuatech.icc.service.DaHuatechIccPlatformService;
import common.core.JSONResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 贾伟焘
 * @version 1.0
 * @Description TODO
 * @Date 2022/7/8 9:56
 */
@RestController
@Slf4j
@Api(value = "DaHuatechIccPlatformController", tags = "大华ICC平台模块接口")
public class DaHuatechIccPlatformController {

    @Resource
    private DaHuatechIccPlatformService daHuatechIccPlatformService;

    @ApiOperation("获取大华ICC平台通道号信息")
    @GetMapping(value = "/getPlatformChannel")
    public JSONResult getDaHuatechIccPlatformChannelInfo() throws ClientException, JsonProcessingException {
        return daHuatechIccPlatformService.getPlatformChannelInfo();
    }
}
